package io.shallwe.index;

import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;

import io.shallwe._admin.basedata.scanner.ScannerService;
import io.shallwe._admin.line.EnterScanService;
import io.shallwe._admin.line.ExitScanService;
/**
 * IndexController 指向系统访问首页
 * @author 王小伟
 * @email shallwe_wang@foxmail.com
 * @date 2019年5月14日 下午9:02:52
 */
public class IndexController extends Controller {
	/**
	 * 首页Action
	 */
	@Inject ScannerService scannerService;
	
	@Inject EnterScanService enterScanService;
	
	@Inject ExitScanService exitScanService;

	public void index() {
		set("manualEnterBindInfo", scannerService.manualEnterBindInfo());
		set("manualExitBindInfo", scannerService.manualExitBindInfo());
		set("enterBufferInfo",enterScanService.enterBufferInfo());
		set("exitBufferInfo",exitScanService.exitBufferInfo());
		render("index.html");
	}
}